﻿#pragma once

#include <QString>
#include <QStringList>
struct CameraParam {
	QString id;
	QString ip;
	QString path;
};

enum class CameraBrand {
	camera_brand_test = 0,
	camera_brand_mmind = 1,

	camera_brand_max,
};


class  Camera
{
public:
	Camera();
	~Camera();
	static Camera* GetCameraObject(const CameraBrand& brand);
	static QStringList GetCameraList();

	/*相机初始化接口*/
	virtual int CameraInit(const CameraParam& param);
	/*触发拍照接口*/
	virtual bool SnapPicture(QString& rgb, QString& depth) = 0;
	virtual bool SaveCameraParamater(QString& path) = 0;
};
